import request from '@/utils/request'
export default {
  // 1 球员列表(条件分页查询)
  getPlayerListPage(current,limit,playerQuery){
    return request({
      url: `/db_work/player/pageCondition/${current}/${limit}`,
      method: 'post',
      // 把对象转换成JSON
      data:playerQuery
    })
  },
  deletePlayer(id){
    return request({
      url: `/db_work/player/deletePlayer/${id}`,
      method: 'delete'
    })
  },
  addPlayer(playVo){
    return request({
      url: `/db_work/player/addPlayer`,
      method: 'post',
      data:playVo
    })
  },
  getPlayerById(id){
    return request({
      url: `/db_work/player/getPlayer/${id}`,
      method: 'get'
    })
  },
  updatePlayer(updatePlayer){
    return request({
      url: `/db_work/player/updatePlayer`,
      method: 'put',
      data:updatePlayer
    })
  },
  getGameManage(){
    return request({
      url: `/db_work/team/gameManage`,
      method: 'get'
    })
  },
  getAllPlayer(){
    return request({
      url: `/db_work/player/getAllPlayer`,
      method: 'get'
    })
  }
}

